package com.wz.utils.batch.mapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

/*@Repository*/
@Component
public class ProductInfoDao {
    @Autowired
    private JdbcTemplate jdbcTemplate;

    public void updatePrice(Integer productId,String count){
        jdbcTemplate.update("update product set name=? where id=?",count,productId);
    }
/*    @Update("update product set name=#{name} where id=#{id}")
    int updatePrice(int id, String name);*/
}
